<template>
  <div class="box">
    <button class="el-button new-btn el-button--primary">新建公告</button>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="公告" name="first">
        <div class="tellg">
          <label class="text_rw">任务类型</label>

          <el-select v-model="value" placeholder="公示中">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
          </el-select>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      activeName: "first",
      options: [
        {
          value: "选项1",
          label: "公示中",
        },
        {
          value: "选项2",
          label: "已结束",
        },
      ],
      value: "",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>


<style scoped lang='scss'>
.box {
  padding: 0 30px;
  width: 800px;
  height: 640px;
  border: 2px solid #f2f1f1;
  position: relative;
  border-radius: 10px;

  .el-button {
    height: 30px;
    padding: 5px 10px;
    position: absolute;
    top: 5px;
    right: 30px;
  }
  .tellg {
    padding: 5px 0 15px;
    .text_rw {
      margin-right: 10px;
      color: #999;
    }
  }
}
</style>
